﻿using System;
using System.Collections.Generic;


namespace DesignPattern.Bridging
{
    /// <summary>
    /// 音乐盒子
    /// </summary>
    public class MusicBox : IBox
    {
        public IPackaging pack { get; set; }

        public MusicBox(IPackaging pack)
        {
            this.pack = pack;
        }


        public void GetPrice()
        {
            Console.WriteLine("this is" + this.pack.GetType());
        }
    }
}
